CompanyLocation.inherit("Control");

function CompanyLocation(node){
    this.Control(node);

	this.headerText=this.properties.getString("headerText");
	this.enter=this.properties.getObject("enter");
	this.address=this.properties.getObject("address");
}

CompanyLocation.prototype.getEnter=function (){
	return this.enter;
}
CompanyLocation.prototype.getAddress=function (){
	return this.address;
}
CompanyLocation.prototype.toString=function () {
	var state=String.safeConcat(this.enter.toString(), this.address.toString(), ", ");
	if (trim(state)){
		return this.headerText+" "+state; 
	}
	return "";
}
CompanyLocation.prototype.clear=function () {
	this.enter.clear();
	this.address.clear();
}
